*********** Meaningful shifts of positions 
* shift to next higher meaningful value
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos!=.  & issue_cat==1 /* all values */
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos<50  & cntry_pos!=. & issue_cat==2 /* 0-25-50-100 */
replace cntry_pos=cntry_pos+50  in 1/38 if  cntry_pos==50 & cntry_pos!=. & issue_cat==2
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos!=25 & cntry_pos!=. & issue_cat==3 /* 0-25-75-100 */
replace cntry_pos=cntry_pos+50  in 1/38 if  cntry_pos==25 & cntry_pos!=. & issue_cat==3
replace cntry_pos=cntry_pos+50  in 1/38 if  cntry_pos==0  & cntry_pos!=. & issue_cat==4 /* 0-50-75-100 */
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos>=50 & cntry_pos!=. & issue_cat==4
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos==0  & cntry_pos!=. & issue_cat==5 /* 0-25-100 */
replace cntry_pos=cntry_pos+75  in 1/38 if  cntry_pos==25 & cntry_pos!=. & issue_cat==5 
replace cntry_pos=cntry_pos+50  in 1/38 if  cntry_pos!=.  & issue_cat==6 /* 0-50-100 */
replace cntry_pos=cntry_pos+75  in 1/38 if  cntry_pos==0  & cntry_pos!=. & issue_cat==7 /* 0-75-100 */
replace cntry_pos=cntry_pos+25  in 1/38 if  cntry_pos==75 & cntry_pos!=. & issue_cat==7
replace cntry_pos=cntry_pos+100 in 1/38 if  cntry_pos!=.  & issue_cat==8 /* 0-100 */

* shift to next lower meaningful value
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos!=.   & issue_cat==1 /* all values */
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos<=50  & cntry_pos!=. & issue_cat==2 /* 0-25-50-100 */
replace cntry_pos=cntry_pos-50  in 39/76 if  cntry_pos==100 & cntry_pos!=. & issue_cat==2
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos!=75  & cntry_pos!=. & issue_cat==3 /* 0-25-75-100 */
replace cntry_pos=cntry_pos-50  in 39/76 if  cntry_pos==75  & cntry_pos!=. & issue_cat==3
replace cntry_pos=cntry_pos-50  in 39/76 if  cntry_pos==50  & cntry_pos!=. & issue_cat==4 /* 0-50-75-100 */
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos>50   & cntry_pos!=. & issue_cat==4
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos==25  & cntry_pos!=. & issue_cat==5 /* 0-25-100 */
replace cntry_pos=cntry_pos-75  in 39/76 if  cntry_pos==100 & cntry_pos!=. & issue_cat==5 
replace cntry_pos=cntry_pos-50  in 39/76 if  cntry_pos!=.   & issue_cat==6 /* 0-50-100 */
replace cntry_pos=cntry_pos-75  in 39/76 if  cntry_pos==75  & cntry_pos!=. & issue_cat==7 /* 0-75-100 */
replace cntry_pos=cntry_pos-25  in 39/76 if  cntry_pos==100 & cntry_pos!=. & issue_cat==7
replace cntry_pos=cntry_pos-100 in 39/76 if  cntry_pos!=.   & issue_cat==8 /* 0-100 */

* change values to lower and upper boundary
replace cntry_pos=100 if cntry_pos>100 
replace cntry_pos=0   if cntry_pos<0 
